package com.design.composite.demo;

//图像文件类
class ImageFile {
	private String name;
 
	public ImageFile(String name) {
		this.name = name;
	}
 
	public void killVirus() {
		//简化代码，模拟杀毒
		System.out.println("----对图像文件'" + name + "'进行杀毒");
	}
}